Repository navigation
feat(actions): quick actions and window snapping - #9
Merged
Merged
Conversation
The part of #2 that is not on main yet, rebuilt on main's notes, screenshots, monitor and updater instead of #2's own copies. Quick actions in the palette: mute the mic (Ctrl+Alt+M) or the sound, switch audio output and input (pactl), dark mode (GNOME gsettings, KDE color scheme), keep awake (systemd-inhibit, also for a time), lock, empty trash with confirmation, color picker (Screenshot portal), plain text clipboard, eject disks (lsblk + udisksctl), brightness (logind + ddcutil), quit or force quit apps with a never-quit list, stop servers on ports. Windows: the Mac's 17 positions through a KWin script over D-Bus or the GNOME extension's new org.menew.Shell service (extension version 2). New menew-desktop crate for the portals and snapping, generic palette Command items, shortcuts for the mic, snapping and a new note, and `menew run <id>` for custom shortcuts on GNOME 45-47. Left out from #2: its second system monitor (sysmon.rs, tray_metrics), its update check and its capture shortcuts, since main has its own. `note.new` opens a note in main's notes window. Keep awake now waits a moment after starting systemd-inhibit and says "The system refused to keep the computer awake" when logind refuses the lock, instead of claiming it is on. scripts/desktop-test/actions.sh checks the palette's keep awake, the lock, dark mode on GNOME and snapping read back from Mutter and KWin. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first of the smaller PRs that replace #2. This one takes the quick actions and window snapping from #2 (commit 82229d0) and rebuilds them on
main, so they use main's notes, screenshots, monitor and updater.What is in it
Ctrl+Alt+M) or the sound, switch the audio output and input (pactl,wpctlas fallback), dark mode (GNOMEgsettings, KDEplasma-apply-colorscheme), keep awake (systemd-inhibit, also for a time:awake 2h), lock, empty trash (asks first), color picker (Screenshot portal), plain text clipboard, eject disks (lsblk+udisksctl), brightness (logind,ddcutilfor external displays), quit or force quit apps with a never-quit list (never_quitinconfig.json), stop a server on a port (port 3000).Ctrl+Alt+Shift+Arrows/Ctrl+Alt+Enter. KDE uses a KWin script over D-Bus. GNOME uses the extension's neworg.menew.Shellservice (extension version 2).menew-desktopcrate for the portals and snapping, genericItemAction::Commandpalette items, andmenew run <id>(qa.mic,win.left,note.new...) for custom shortcuts on GNOME 45-47.Ctrl+Alt+Jopens a new note in main's notes window.systemd-inhibit. If logind refuses the lock, it says "The system refused to keep the computer awake" (new string in all 5 languages) instead of claiming it is on.scripts/desktop-test/actions.sh, sourced bygnome.shandkde.sh, covers keep awake from the palette, the inhibit lock, dark mode on GNOME, and snapping read back from Mutter and KWin.docs/parity.mdare updated.Dropped from #2
sysmon.rs,tray_metrics), since main hasmonitor.rsandmonitor_tray_items.Ctrl+Alt+S/Ctrl+Alt+Ocapture shortcuts, since main already hasCtrl+Alt+Shift+S/Ctrl+Alt+Shift+T.Testing
All runs were in the Linux dev image (Ubuntu 24.04):
cargo clippy --workspace --all-targets -- -D warningsandcargo buildpass.cargo test --workspacepasses: 280 tests in 19 suites.awake 2hqa.darkflipscolor-schemewin.leftgives geometry0,640,1280win.rightgives geometry640,640,1280gnome.sh/kde.shruns stop in phase 5, before these checks. That is only because the local image's ImageMagick has no font to draw the OCR sample. CI on GitHub runs the full scripts, and main's CI passes there.Not checked on a real desktop yet: the snapping shortcuts, the audio devices, brightness, eject and the color picker.
The next PRs come after this one merges: focus extras, then the tray popover / Menew window / settings / welcome tour, then the release 1 checks and docs. #2 stays open until then.
🤖 Generated with Claude Code